package com.guangzi.mapper;

import com.guangzi.common.Pager;
import com.guangzi.entity.BorrowDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface BorrowDetailDao extends BaseDao {

    @Override
    List <Object> listPager(@Param("pager") Pager pager);

    @Override
    List <Object> listPagerCriteria(@Param("pager") Pager pager, @Param("query") Object obj);

    @Override
    Long countCriteria(@Param("query") Object obj);

    //修改图片
    void updateTupian(Object obj);

    void updateBybaid(Object obj);


    //查看详情
    BorrowDetailVO findDetails(@Param("baid")Long baid);

    BorrowDetailVO find(@Param("baid")Long baid);


    @Override
    void update(Object obj);

    @Override
    void save(Object obj);

    BorrowDetailVO findWay(@Param("uid")Long uid,@Param("juid")Long juid,@Param("baid") Long baid);
}
